#
# Copyright 2024 Kumo.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
###########################################################################
# below are examples, after initialization, modify it to your own.
###########################################################################
###kmcmake_example
#[[
set(TB_EX_SRC
        status.cc
        lib.cc
        )
kmbind_add_module(_turbopy MODULE ${TB_EX_SRC})
target_include_directories(_turbopy PRIVATE ${PROJECT_SOURCE_DIR})
target_link_libraries(_turbopy PRIVATE turbo::turbo_static)
install(TARGETS _turbopy DESTINATION .)
]]
add_cython_target(_turbopy CXX)

add_library(_turbopy MODULE ${_turbopy} myclass.cc status_wrap.cc)
target_include_directories(_turbopy PRIVATE ${PROJECT_SOURCE_DIR})
target_compile_options(_turbopy PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${KMCMAKE_CXX_OPTIONS}>)
target_link_libraries(_turbopy ${KMCMAKE_DEPS_LINK})
python_extension_module(_turbopy)

install(TARGETS _turbopy LIBRARY DESTINATION .)
set(PXDS
    status.pxd
    flat_hash_map.pxd
)
install(FILES ${PXDS}
        DESTINATION .
        )

###kmcmake_example